package cloud.seat.order.repository;

//import cloud.seat.order.sg.OrderEvent;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.context.annotation.Bean;
//import org.springframework.messaging.Message;
//import org.springframework.stereotype.Service;
//
//import java.util.function.Consumer;

//@Slf4j
////@Service
//public class OrderService {
//
//    // 方法名需与配置文件function.definition一致:cite[6]
////    @Bean
////    public Consumer<Message<OrderEvent>> orderConsumer() {
////        return message -> {
////            OrderEvent payload = message.getPayload();
////            String tag = message.getHeaders().get("TAG", String.class);
////            log.info("[消费消息] 订单ID={}, 类型={}, Tag={}", payload.getOrderId(), payload.getType(), tag);
////
////            // 业务处理逻辑...
////            if ("CANCEL".equals(payload.getType())) {
////
////            }
////        };
////    }
//}
